package com.asset.dispoal.evidenceconfig.domain.db.mapper;

import com.asset.dispoal.evidenceconfig.domain.db.entity.BsEvidenceConfItem;
import com.asset.dispoal.evidenceconfig.dto.request.BsEvidenceConfItemRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tech.mhuang.pacebox.springboot.core.mapper.BaseMapper;
import tech.mhuang.pacebox.springboot.protocol.data.Page;

import java.util.List;

/**
 * @author qr
 * @date 2021/10/21$
 */
@Mapper
public interface BsEvidenceConfItemMapper extends BaseMapper<BsEvidenceConfItem, String> {

    /**
     * 根据证据打包id查询分类列表
     *
     * @param page
     * @return
     */
    List<BsEvidenceConfItem> queryByConfId(Page<BsEvidenceConfItemRequest> page);

    /**
     * 根据证据打包id查询分类列表条数
     *
     * @param bsEvidenceConfItemRequest
     * @return
     */
    int queryByConfIdCount(@Param("bsEvidenceConfItemRequest") BsEvidenceConfItemRequest bsEvidenceConfItemRequest);

    List<BsEvidenceConfItem> queryIdsByTable(@Param("idList") List<String> ids);
}
